package book

import (
	"gin_demo/middleware"
	"github.com/gin-gonic/gin"
)

func Routers(e *gin.Engine) {
	e.GET("/book/search", search)
	e.GET("/book", list)
	e.POST("/book", middleware.JWTAuthMiddleware(), create)
	e.POST("/upload", upload)
	e.POST("/uploadMulti", uploadMulti)
}
